package cn.hinglo.common.handler;

import com.jfinal.handler.Handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * @createTime: 2018/1/4
 * @author: HingLo
 * @description: Xss攻击过滤器
 */
public class XssHandler extends Handler {
    @Override
    public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {
        //过滤所有的请求
        request = new XssHttpServletRequestWrapper(request);
        next.handle(target, request, response, isHandled);

    }
}
